﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DICOM_PROJECT.Models
{
    public class ImageVisitModel:IComparable<ImageVisitModel>
    {
        public string ImageVisitID { get; set; }
        public string Radiologist { get; set; }
        public string CreateDate { get; set; }
        public string Description { get; set; }
        public int CompareTo(ImageVisitModel imageVisitModel)
        {
            if (this.ImageVisitID.Length < imageVisitModel.ImageVisitID.Length)
                return 1;
            if (this.ImageVisitID.Length > imageVisitModel.ImageVisitID.Length)
                return -1;
            return -String.Compare(this.ImageVisitID, imageVisitModel.ImageVisitID);
        }
    }
}